home *** CD-ROM | disk | FTP | other *** search
Wrap
mmmmoooouuuunnnntttt((((1111MMMM)))) mmmmoooouuuunnnntttt((((1111MMMM)))) NNNNAAAAMMMMEEEE mount, umount - mount and unmount filesystems SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS mmmmoooouuuunnnntttt mmmmoooouuuunnnntttt [ ----MMMM altmtab ] [ ----PPPP prefix ] ----pppp mmmmoooouuuunnnntttt [ ----hhhh host ] [ ----ffffnnnnrrrrvvvv ] mmmmoooouuuunnnntttt ----aaaa[ccccffffnnnnvvvvCCCC] [ ----tttt type ] [ ----TTTT list ] [----mmmm numprocs ] mmmmoooouuuunnnntttt [ ----ccccffffnnnnvvvvCCCC ] [ ----tttt type ] [ ----TTTT list ] [ ----bbbb list ] mmmmoooouuuunnnntttt [ ----ccccffffnnnnrrrrvvvvCCCC ] [ ----tttt type ] [ ----TTTT list ] [ ----oooo options ] fsname dir mmmmoooouuuunnnntttt [ ----ccccffffnnnnrrrrvvvvCCCC ] [ ----oooo options ] fsname | dir uuuummmmoooouuuunnnntttt ----aaaa[kkkkvvvv] [ ----tttt type ] [----mmmm numprocs ] [ ----TTTT list ] uuuummmmoooouuuunnnntttt ----hhhh host [ ----kkkkvvvv ] [----mmmm numprocs ] [ ----bbbb list ] uuuummmmoooouuuunnnntttt [ ----kkkkvvvv ] fsname | dir [ fsname | dir ] ... DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN _m_o_u_n_t attaches a named filesystem _f_s_n_a_m_e to the filesystem hierarchy at the pathname location _d_i_r. The directory _d_i_r must already exist. It becomes the name of the newly mounted root. The contents of _d_i_r are hidden until the filesystem is unmounted. If _f_s_n_a_m_e is of the form host:path, the filesystem type is assumed to be nnnnffffssss. _u_m_o_u_n_t unmounts a currently mounted filesystem, which can be specified either as a mounted-on directory or a filesystem. _m_o_u_n_t and _u_m_o_u_n_t maintain a table of mounted filesystems in /_e_t_c/_m_t_a_b, described in _m_t_a_b(4). If invoked without an argument, _m_o_u_n_t displays the table. If invoked with only one of _f_s_n_a_m_e or _d_i_r, _m_o_u_n_t searches the file /_e_t_c/_f_s_t_a_b (see _f_s_t_a_b(4)) for an entry whose _d_i_r or _f_s_n_a_m_e field matches the given argument. For example, if this line is in /_e_t_c/_f_s_t_a_b: ////ddddeeeevvvv////uuuussssrrrr ////uuuussssrrrr xxxxffffssss rrrrwwww 0000 0000 then the commands mmmmoooouuuunnnntttt ////uuuussssrrrr and mmmmoooouuuunnnntttt ////ddddeeeevvvv////uuuussssrrrr are shorthand for mmmmoooouuuunnnntttt ////ddddeeeevvvv////uuuussssrrrr ////uuuussssrrrr. MMMMOOOOUUUUNNNNTTTT OOOOPPPPTTTTIIIIOOOONNNNSSSS ----aaaa Attempt to mount all the filesystems described in /_e_t_c/_f_s_t_a_b. (In this case, _f_s_n_a_m_e and _d_i_r are taken from /_e_t_c/_f_s_t_a_b.) If a type is specified with ----tttt,,,, all of the filesystems in /_e_t_c/_f_s_t_a_b with that type are mounted. Multiple types may be specified with the ----TTTT option. Filesystems are not necessarily mounted in the order listed in /_e_t_c/_f_s_t_a_b. If the ----mmmm option is specified, its argument is used to limit the number of processes used to mount all of the file systems in parallel. ----bbbb _l_i_s_t (all-but) Attempt to mount all of the filesystems listed in /_e_t_c/_f_s_t_a_b except for those associated with the directories contained in _l_i_s_t. _l_i_s_t consists of one or more directory names separated by commas. PPPPaaaaggggeeee 1111 mmmmoooouuuunnnntttt((((1111MMMM)))) mmmmoooouuuunnnntttt((((1111MMMM)))) ----cccc Invoke _f_s_s_t_a_t(1M) on each filesystem being mounted, and if it indicates that the filesystem is dirty, call _f_s_c_k(1M) to clean the filesystem. _f_s_c_k is passed the ----yyyy option. This option applies only to EFS filesystems, not to XFS filesystems. ----ffff Fake a new /_e_t_c/_m_t_a_b entry, but do not actually mount any filesystems. ----hhhh _h_o_s_t Mount all filesystems listed in /_e_t_c/_f_s_t_a_b that are remote- mounted from _h_o_s_t. ----mmmm _n_u_m_p_r_o_c_s Use no more than _n_u_m_p_r_o_c_s processes to mount the specified file systems in parallel. The default number of processes used is 16. This option is only meaningful when used in conjunction with the ----aaaa option. ----nnnn Mount the filesystem without making an entry in /_e_t_c/_m_t_a_b. ----oooo _o_p_t_i_o_n_s Specify _o_p_t_i_o_n_s, a list of comma-separated words, described in _f_s_t_a_b(4). ----pppp Print the list of mounted filesystems in a format suitable for use in /_e_t_c/_f_s_t_a_b. ----rrrr Mount the specified filesystem read-only. This is a shorthand for: mmmmoooouuuunnnntttt ----oooo rrrroooo _f_s_n_a_m_e _d_i_r Physically write-protected and magnetic tape filesystems must be mounted read-only, or errors occur when access times are updated, whether or not any explicit write is attempted. ----tttt _t_y_p_e The next argument is the filesystem type. The accepted types are pppprrrroooocccc, eeeeffffssss, xxxxffffssss, nnnnffffssss, ffffdddd, ccccaaaacccchhhheeeeffffssss, ddddoooossss, hhhhffffssss and iiiissssoooo9999666666660000; see _f_s_t_a_b(4) and the _f_i_l_e_s_y_s_t_e_m_s(4) man page for more information on the supported filesystem types. for a description of these filesystem types. When this option is used, mount calls another program of the form _m_o_u_n_t_ttttyyyyppppeeeennnnaaaammmmeeee, where typename is one of the above types. This program must be on the default path. ----TTTT _l_i_s_t The next argument is a comma-separated list of filesystem types. This option is usually used in combination with ----aaaa or ----bbbb. ----vvvv (verbose) _m_o_u_n_t displays a message indicating the filesystem being mounted and any problems encountered. PPPPaaaaggggeeee 2222 mmmmoooouuuunnnntttt((((1111MMMM)))) mmmmoooouuuunnnntttt((((1111MMMM)))) ----MMMM _a_l_t_m_t_a_b Instead of /_e_t_c/_m_t_a_b, use the mtab or fstab _a_l_t_m_t_a_b. ----PPPP _p_r_e_f_i_x Used with the ----pppp option, prepends _p_r_e_f_i_x to the emitted _f_i_l_e_s_y_s_t_e_m and _d_i_r_e_c_t_o_r_y paths. Doesn't alter pathnames embedded in the options, such as the filesystem's rrrraaaawwww=_p_a_t_h raw device pathname. UUUUMMMMOOOOUUUUNNNNTTTT OOOOPPPPTTTTIIIIOOOONNNNSSSS ----aaaa Attempt to unmount all the filesystems currently mounted (listed in /_e_t_c/_m_t_a_b). In this case, _f_s_n_a_m_e is taken from /_e_t_c/_m_t_a_b. NNNNOOOOTTTTEEEE: The use of uuuummmmoooouuuunnnntttt ----aaaa is _N_O_T symmetric with mmmmoooouuuunnnntttt ----aaaa, because the first is based on the mmmmttttaaaabbbb file, while the second is based on the ffffssssttttaaaabbbb file. Typical differences are the ////pppprrrroooocccc, ////hhhhwwww, and ////ddddeeeevvvv////ffffdddd filesystems. ----bbbb _l_i_s_t (all-but) Attempt to unmount all of the filesystems currently mounted except for those associated with the directories contained in _l_i_s_t. _l_i_s_t consists of one or more directory names separated by commas. Using umount -a itself is not usually a good idea, because it can not be reversed by the command mount -a since a number of filesystems are often not in the /_e_t_c/_f_s_t_a_b file. Among these are the _p_r_o_c and _f_d filesystems. Instead, use a command similar to umount -T xfs,efs ----hhhh _h_o_s_t Unmount all filesystems listed in /_e_t_c/_m_t_a_b that are remote- mounted from _h_o_s_t. ----mmmm _n_u_m_p_r_o_c_s Use no more than _n_u_m_p_r_o_c_s processes to unmount the specified file systems in parallel. The default number of processes used is 16. This option is only meaningful when used in conjunction with the ----aaaa,,,, ----tttt or ----hhhh options. ----kkkk Attempt to kill processes that have open files or current directories in the appropriate filesystems and then unmount them. ----tttt _t_y_p_e Unmount all filesystems of a given filesystem type. The accepted types are pppprrrroooocccc, eeeeffffssss, xxxxffffssss, nnnnffffssss, ffffdddd, ccccaaaacccchhhheeeeffffssss, ddddoooossss, hhhhffffssss, and iiiissssoooo9999666666660000. PPPPaaaaggggeeee 3333 mmmmoooouuuunnnntttt((((1111MMMM)))) mmmmoooouuuunnnntttt((((1111MMMM)))) ----TTTT _l_i_s_t Unmount all filesystems whose type is in the comma-separated list given. ----vvvv (verbose) _u_m_o_u_n_t displays a message indicating the filesystem being unmounted and any problems encountered. ----CCCC Disable overlapping partition/volume checks. By default _m_o_u_n_t checks to see if the destination partition or logical volume overlaps any mounted or reserved partitions in the system. If an overlap or mount conflict is found, the user will be notified and prevented from potentially corrupting the existing data. For systems with a large number of disks, this additional checking may add noticable overhead to the command's execution time. For situations where command performance is necessary, this switch may be used to disable the safeguards. Due to the potential for user-error causing corrupted filesystems or other on-disk data corruption, we strongly discourage use of this switch in normal operation. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS mount /dev/usr /usr mount a local disk mount -avt xfs mount all xfs filesystems; be verbose mount -t nfs server:/d /net/d mount remote filesystem mount server:/d /net/d same as above mount -o soft server:/d /net/d same as above but soft mount mount -p > /etc/fstab save current mount state mount -t dos /dev/rdsk/fds0d2.3.5 /floppy mount a MS-DOS floppy mount -t hfs /dev/rdsk/fds0d3.3.5hi /floppy mount a Macintosh HFS floppy mount -t hfs /dev/rdsk/dks0d7vol /cdrom mount an HFS CD-ROM mount -t iso9660 /dev/rdsk/dks0d7vol /cdrom mount an ISO 9660 CD-ROM mount server:/cdrom /net/cdrom mount remote iso9660 filesystem mount -M /root/etc/fstab -P /root -p | sed 's;raw=/;raw=/root/' >> /etc/fstab append /root/etc/fstab with /root prefix to currently active fstab. umount -t nfs -b /foo unmount all nfs filesystems except /foo TTTTRRRRIIIIXXXX SSSSppppeeeecccciiiiffffiiiicccc mount -o eag:mac-ip=dblow:mac-default=userlow,doxattr,nodefxattr \ host:/data /imported Mount host:/data from a Trusted Irix system. dblow MAC will be used for NFS IP sockets, userlow MAC will be given to files if 'host' does not support MAC. PPPPaaaaggggeeee 4444 mmmmoooouuuunnnntttt((((1111MMMM)))) mmmmoooouuuunnnntttt((((1111MMMM)))) EEEERRRRRRRROOOORRRR MMMMEEEESSSSSSSSAAAAGGGGEEEESSSS From _m_o_u_n_t: mount: device on _m_o_u_n_t_d_i_r: Invalid argument This message appears for a wide variety of problems. It doesn't usually indicate that you have specified the command line incorrectly; rather that there is something wrong with the disk partition, the filesystem in the disk partition, or the mount directory. For example, this error message occurs if you try to mount a device that doesn't contain a valid filesystem. From _u_m_o_u_n_t: _m_o_u_n_t_d_i_r: Resource busy Possible causes of a this message are: open files in the filesystem, programs being executed from the filesystems, and users whose current directory is in the filesystem. Usually it is not possible to unmount the /_u_s_r filesystem because many daemons, such as /_u_s_r/_l_i_b/_l_p_s_c_h_e_d, /_u_s_r/_e_t_c/_y_p_b_i_n_d, and /_u_s_r/_e_t_c/_s_y_s_l_o_g_d, execute from the /_u_s_r filesystem. The simplest way to make sure the /_u_s_r filesystem is not busy is to bring the system down to single-user mode with the _s_i_n_g_l_e(1M) command. You can force all filesystems except the root filesystem to be unmounted with the _u_m_o_u_n_t ----kkkk option (note that this kills processes). To unmount the root filesystem, you must be running the miniroot. FFFFIIIILLLLEEEESSSS /etc/fstab filesystem table /etc/mtab mount table /etc/mntproc script to mount /proc SSSSEEEEEEEE AAAALLLLSSSSOOOO fsck(1M), mountd(1M), nfsd(1M), mount(2), umount(2), filesystems(4), fstab(4), mtab(4). BBBBUUUUGGGGSSSS _u_m_o_u_n_t can mismanage the /_e_t_c/_m_t_a_b mount table if another _m_o_u_n_t or _u_m_o_u_n_t call is in progress at the same time. Mount calls another "helper" program of the form mmmmoooouuuunnnntttt____ttttyyyyppppeeeennnnaaaammmmeeee, where typename is one of the accepted mount types. If this program is not on the default path, then mount returns with an error message about unknown filesystem. The user must make sure that the helper mount program is in the path. For example, /_u_s_r/_e_t_c must be in the path to mount an iso9660 CD. PPPPaaaaggggeeee 5555 mmmmoooouuuunnnntttt((((1111MMMM)))) mmmmoooouuuunnnntttt((((1111MMMM)))) NNNNOOOOTTTTEEEE If the directory on which a filesystem is to be mounted is a symbolic link, the filesystem is mounted on tttthhhheeee ddddiiiirrrreeeeccccttttoooorrrryyyy ttttoooo wwwwhhhhiiiicccchhhh tttthhhheeee ssssyyyymmmmbbbboooolllliiiicccc lllliiiinnnnkkkk rrrreeeeffffeeeerrrrssss,,,, rather than being mounted on top of the symbolic link itself. The helper program mmmmoooouuuunnnntttt____iiiissssoooo9999666666660000 is in the optional package _e_o_e._s_w._c_d_r_o_m. This package must be installed in order to mount iso9660 filesystems. The mount command attempts to assure that the blocksize of the device matches that specified in the device volume header. PPPPaaaaggggeeee 6666